add counter for picture in categories