Using the actual count of photos to determine the correct number