add photo counter