Goal 2: Javascript Practice

finished charCount()