count the number of photo each userid posted