Update analytics.js

Added countLetters() to count the letter frequency.