def num_questions(user):
 return Question.objects.filter(creator=user).count()

def num_questions ( user ) : return Question . objects . filter ( creator = user ) . count ( )
returns the number of questions a user has .