MongoDB Group By and Counter PHP Code