List of utility methods to do Collection Count
int overlappers = 0; for (Integer d : distances) if (d.intValue() == 0) overlappers++; return overlappers;