ON previous mongo driver you had all the result functions ->count() It seems the new driver lacks the counting function $coleccion->find()->count() is missing, it is impossible to count result on phongo