add photos check API
return count and last_id attribute values