Neighbor counter rewrite

https://www.youtube.com/watch?v=d3CCJBdRyCA