Fix a typo in the Javascript for counting problem.
Merge pull request #8 from davidwagner/fixhw1typo

Fix a typo in the Javascript for counting problem.