generating stats of tagged photos