show count by using aggregation framework