Add .gitignore
Create neighbor counting function