Count how many times pictures were used