Counting the number of static mesh at the level

Give your static meshes tags, do a multi sphere trace and filter based on tags.