Find points with a certain amount of neighbours

These threads might be relevant?