Refactoring within Counter class
Fixed gitignore file