Adds JavaScript and data files to gitignore
Implements counting logic