count photo views in photo object