report number of neighbors for a type of contiguity