Replaced redundant code with BAO function getParticipantCountforEvent