Jak zrobić liczbę MySQL (*) w Doctrine2?

Mam następujące zapytanie Doctrine2:

$qb = $em->createQueryBuilder()
      ->select('t.tag_text, COUNT(*) as num_tags')
      ->from('CompanyWebsiteBundle:Tag2Post', 't2p')
      ->innerJoin('t2p.tags', 't')
      ->groupBy('t.tag_text')
;
$tags = $qb->getQuery()->getResult();

Po uruchomieniu otrzymuję następujący błąd:

[Semantical Error] line 0, col 21 near '*) as num_tags': Error: '*' is not defined. 

Jak zrobić liczbę MySQL (*) w Doctrine2?

questionAnswers(3)

yourAnswerToTheQuestion