modified stats.py for Project Gutenberg texts