Initial version from my blog post

http://www.technologytoolbox.com/blog/jjameson/archive/2008/05/30/counting-rows-in-all-database-tables.aspx