Implement photos.getCounts