output count of neighboring records