Word count plugin for Movable Type

Freshness Warning
This article is over 16 years old. It's possible that the information you read below isn't current.

MTWordCount is a Movable Type plugin that counts your entry’s words and inserts it into your page.

Tim Appnel has taken over the maintenance and support of this plugin as of Oct 2004.


You can get MTWordCount 1.3 by downloading WordCount.zip.


Once you’ve downloaded and unzipped WordCount.zip, connect to your FTP server and open the directory where you have Movable Type installed.

Create a directory there called plugins if there isn’t one already.

Copy WordCount.pl to the plugins directory and set the permissions to 755.

Using MTWordCount

Once you’ve installed MTWordCount, using it is as simple as placing a new Movable Type tag in your template.

The <MTWordCount> tag goes between the <MTEntries></MTEntries> tags. The tag will count the number of words in your Main Entry text and your Extended Entry text and insert the count into your page.


	<MTEntryExcerpt> (<MTWordCount> Words) 

New in version 1.4 is the <MTImageCount> tag. Authors of photo blogs can use this tag just like WordCount to get a count of all the images in an entry.


Like our other freeware, this plugin is released under the open-source MIT License. In plain English, that means you can do whatever you want with the software, including modifying it, selling it, or eating it, but we’re not responsible for anything that goes wrong.

Revision History

1.4 - Aug 31, 2002
(New) New tag: <MTImageCount>.
(Changed) Speed improvements.

1.3 - July 14, 2002
(Changed) Text inside HTML tags is ignored.
(Changed) Text is split on any whitespace instead of just the space character.

1.2 - July 14, 2002
(New) Better error handling.

1.1 - June 30, 2002
(Fix) If Entry text or Extended Entry text is empty, an error may occur.

1.0 - June 27, 2002
Initial release.

Trackback from patchwork progression
September 2, 2003 11:45 AM

MT Tweaks

Excerpt: General, indispensible links for MT setup and configuration include: Movable Type, the girlie matters, Empty Pages, Scriptygoddess, and CSS Zen Garden. To minimize the tehno-babble on this blog while keeping track of this behemoth project, here is the ...

September 27, 2003 10:17 AM

I love this plugin! It works perfectly, and you're total weblog count works wonders too, so thank you for that too. The only thing that I wish it had was a method for adding a comma separator as needed. For example, 10,000 verses 10000. Is there anyway to do this, or have I missed something?

Trackback from -Funtime Franky-
October 10, 2003 7:04 AM

In other news today...

Excerpt: Will over at Basingstoke Life has redesigned his site with a Black theme, which while I like the black and white theme, I’m not too sure about the massive image of the Thames. Over here, I have rejigged certain parts...

Trackback from BradHeintz.com
October 14, 2003 9:32 AM

More Improvements

Excerpt: Some of them are behind the scenes, but there have been a bunch of improvements to the site over the past few days. A thousand thanks to the Six Apart people for making Movable Type, the software behind this site...

Joshu'a M
October 20, 2003 1:26 PM

Is there anyway to incorporate this into mtarchivelist so that the wordcount will show up beside each entry reference?

October 21, 2003 12:23 AM

I'm surprised no one has asked for an option to count JUST the words in the Extended Entry. Been reading through everything in here and EntryCount and haven't found anything that indicates that either plugin could do it. Did I miss something? Or if I didn't... any chance it could be added? Thanks

October 22, 2003 11:00 AM

I am getting a similar error (as reported Jun 30, 2002) with other MT plugins. Could you please specify how you got around the problem ? MT::App::CMS=HASH(0x140f18) Use of uninitialized value in split at plugins

October 26, 2003 5:12 PM

I'm trying to figure out how to limit the word count to just one category, or to do it by categories instead of on each individual entry. I've looked all over the MT site and MTplugins site, but haven't found the answer, and since I'm relatively new to MT, I'm not sure how to go about it. I got it to count the words for every single one of my entries, but what I would like is to be able to display in the sidebar, by category, the number of words in each category. Can you help me out?

Michael Heraghty
November 8, 2003 6:23 AM

Does this plugin still work for version 2.64?

Trackback from Ones and Zeros
November 13, 2003 9:03 AM

Workin' in a code mine

Excerpt: I created a modified version of MTWordCount that has the property 'exclude' that allows selection of just the Body or just the Extended Entry.

November 13, 2003 9:08 AM

This plugin works fine in 2.63. MegaLion: I also wanted the ability to just get Body or Extended Count. Go to my web page for a link to a modified version. Note: While my code works for me, this is really my first try with Perl. Luckily, this is a small plugin to work on.

Trackback from diachrony
November 19, 2003 5:31 PM

Rambling On

Excerpt: I don’t suppose this has any practical value but I came across a script for totalling the word count of a MovableType blog (which I’ve incorporated into the title bar of both my blogs). The original script was posted by...

Trackback from Mind of Knowledge
December 17, 2003 2:30 PM

MT Word Count

Excerpt: Word count plugin for Movable Type :: Kalsey Consulting Group...

Trackback from chris' introspective
September 28, 2004 2:43 PM


Excerpt: With the shifting of Movable Type templates to dynamic pages, many of the existing Perl plugins won't work (since PHP can't execute Perl). One function I've been waiting to see was the wordcount plugin, however I can't find one. So...

Trackback from Atomkinder Broadcast
October 5, 2004 3:12 PM

Rebuilding EmpireHax

Excerpt: You know it. I know it. Zorak know it. Moltar know it. Rebuilding the Atomkinder news system with MovableType turned into quite a mission. I used a bunch of stuff to do it, here be the record of the process...

These are the last 15 comments. Read all 67 comments here.

This discussion has been closed.

Follow me on Twitter

Best Of

  • The mouse and me Not only is the mouse very destructive, but it's evaded all attempts to capture or kill it so far.
  • Comment Spam Manifesto Spammers are hereby put on notice. Your comments are not welcome. If the purpose behind your comment is to advertise yourself, your Web site, or a product that you are affiliated with, that comment is spam and will not be tolerated. We will hit you where it hurts by attacking your source of income.
  • The importance of being good Starbucks is pulling CD burning stations from their stores. That says something interesting about their brand.
  • Rounded corners in CSS There lots of ways to create rounded corners with CSS, but they always require lots of complex HTML and CSS. This is simpler.
  • Where do the RSS ad startups fit in? Yahoo's RSS advertising service could spell trouble for pure-play RSS advertising services unless they adapt their business model.
  • More of the best »

Recently Read

Get More

Subscribe | Archives



Stretching your team (Jun 11)
Stretching your team is one of the best ways to improve your output, your team's happiness, and your velocity. But they'll need coaching.
Physical camera shutter for Cisco Spark Board (Jul 6)
A 3d printable design for a camera shutter for a Cisco Spark Board
My Travel Coffee Setup (Jan 20)
What my travel coffee brewing setup looks like, and how you can build your own for under $100.
Turkey Legs (May 30)
Product naming gone awry.
Speaking for Geeks: Your Slides (Dec 17)
Tips and tricks for creating great slides.
Speaking for Geeks: Writing Your Talk (Dec 14)
Don’t wait until the night before the talk to write it. Crazy, I know.
Speaking for Geeks: Tell a Story (Dec 13)
Telling a story keeps your presentation focused, keeps your audience interested, and makes it easier for you to remember your talk.
Speaking for Geeks: Where to speak (Dec 11)
You've got a great idea for a talk. How do you find conferences to submit it to?

Subscribe to this site's feed.


Voice and communications platforms, including Tropo and Phono. Work.
The Sacramento technology startup community.
Pinewood Freak
Pinewood Derby tips and tricks


Adam Kalsey

Mobile: 916.600.2497

Email: adam AT kalsey.com

AIM or Skype: akalsey



©1999-2018 Adam Kalsey.
Content management by Movable Type.