Wordbar creates a simple wordcounter / progress bar as a Widget on your WordPress blog
Every time the widget is rendered it gets the total from the WordPress database from scratch.
The code for the plugin itself can be edited. There is only one
$wpdb call in the
wordbar_render function, and it can be edited to bring back posts in any combination.