Ok i made some changes so the counter counts correctly when the image is download or viewed in full size. But be aware that the image counter inside the image is cached (for performance) so the counter would only update once you clear your browser cache.