Detect if set amount of entities nearby

Is there a way to detect if there is a set amount(8) entities in the nearby area? Not liek if there is one to eight, but if there is no more, no less?

Continue to help post