def getNumRegistered(self, includeTemporaryRegs=False, dateTime=None):
        '''
        Method allows the inclusion of temporary registrations, as well as exclusion of
        temporary registrations that are too new (e.g. for discounts based on the first
        X registrants, we don't want to include people who started tp register later
        than the person in question.
        '''

        count = self.eventregistration_set.filter(cancelled=False,dropIn=False).count()
        if includeTemporaryRegs:
            excludes = Q(registration__expirationDate__lte=timezone.now())
            if isinstance(dateTime,datetime):
                excludes = exclude | Q(registration__dateTime__gte=dateTime)
            count += self.temporaryeventregistration_set.filter(dropIn=False).exclude(excludes).count()
        return count