Gas station without pumps

2012 October 8

Word count for my blog

Filed under: Uncategorized — gasstationwithoutpumps @ 21:48
Tags: , , ,

I saw Nick Falkner talking about the number of words in his blog, claiming 273,639 words in 343 posts.  I was curious about how many words I had in my blog, but careful reading of the forums and support pages indicated that there is no easy way to get that information on a blog, since they don’t install the word-count plugins available from

I decided to export my blog to my laptop and see if I could find the information in the exported .xml file.  The word counts are not explicitly in the xml file as metadata, but the text of the blog posts is.  I wrote a very crude script to approximately count the words in the content, getting 573,960 words for 862 published posts and 165 (mostly very short) unpublished drafts.  This is most likely an overestimate, as it counts some non-text things (like tags) as words and includes draft posts that I haven’t published. In any event, it looks like my posts are averaging somewhere around 650 words each—somewhat shorter than Nick’s 800-word average, but still a bit long.

The script probably should be rewritten to read XML properly and cut out the tags, but it wasn’t worth the trouble for me to learn to use an XML parser for this quick check.  If anyone wants to write better code for me, feel free.  I was going to include my code here, but since it is full of “<” characters that the WordPress sourcecode tag treats as tags, it is too much hassle to include.  Sigh—I really wish would make it easier to post unmangled source code.


  1. I had the same frustration with trying to get the word count easily and wrote some very ugly code that I’m a little too embarrassed to share. I’ve received some good feedback recently that 1,000 words, or thereabouts, requires more time than most people can commit to on a daily basis. People told me that they were still reading me but, sometimes, they just didn’t have time. I suspect that your 650 is a far more approachable average than mine.

    500,000 words is a serious commitment! I can only hope it was less tiring for you than half of that was for me.

    Comment by nickfalkner — 2012 October 8 @ 22:03 | Reply

    • Although I’ve been averaging about a post a day, I only committed to it for a month during NaBloPoMo. Well, actually twice, since I did it again the next year.

      I find in more relaxing to do posts in bursts, without worrying about what rate they are coming out.

      Recently, a lot of my posts have been working notes on creating the Applied Circuits course, and more for my benefit than for the benefit of my readers.

      Comment by gasstationwithoutpumps — 2012 October 8 @ 22:21 | Reply

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: