refined counter for photos gallery