Incorrect neighbor count check