Count number of photos.

That was surprisingly harder than I expected.