Doctrine 2 - ORM

DQL Example about count(*) related entity is wrong