def numRegisteredForRole(self, role, includeTemporaryRegs=False):
count = self.eventregistration_set.filter(cancelled=False,dropIn=False,role=role).count()<EOL>if includeTemporaryRegs:<EOL><INDENT>count += self.temporaryeventregistration_set.filter(dropIn=False,role=role).exclude(<EOL>registration__expirationDate__lte=timezone.now()).count()<EOL><DEDENT>return count<EOL>
Accepts a DanceRole object and returns the number of registrations of that role.