Word count plugin for Movable Type

Freshness Warning
This blog post is over 21 years old. It's possible that the information you read below isn't current and the links no longer work.

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.

Recently Written

Input metrics lead to outcomes (Sep 1)
An easy to understand example of using input metrics to track progress toward an outcome.
Lagging Outcomes (Aug 22)
Long-term things often end up off a team's goals because they can't see how to define measurable outcomes for them. Here's how to solve that.
Tyranny of Outcomes (Aug 19)
An extreme focus on outcomes can have an undesired effect on product teams.
The Trap of The Sales-Led Product (Dec 10)
It’s not a winning way to build a product company.
The Hidden Cost of Custom Customer Features (Dec 7)
One-off features will cost you more than you think and make your customers unhappy.
Domain expertise in Product Management (Nov 16)
When you're hiring software product managers, hire for product management skills. Looking for domain experts will reduce the pool of people you can hire and might just be worse for your product.
Strategy Means Saying No (Oct 27)
An oft-overlooked aspect of strategy is to define what you are not doing. There are lots of adjacent problems you can attack. Strategy means defining which ones you will ignore.
Understanding vision, strategy, and execution (Oct 24)
Vision is what you're trying to do. Strategy is broad strokes on how you'll get there. Execution is the tasks you complete to complete the strategy.


What I'm Reading


Adam Kalsey

+1 916 600 2497


Public Key

© 1999-2023 Adam Kalsey.