Update count_essay_pageviews.py

Added unique page view counts, output to CSV file, cleaned up some parts.