add spec to count neighbors