Count events using MongoDB instead of PHP (wtf?!)