add gitignore file
Moved actual work of counting lines into it's own method