'Return the number of hits that an image has.
:param image_id: Opaque image identifier'

def get_hit_count(self, image_id):

    if (not self.is_cached(image_id)):
        return 0
    path = self.get_image_filepath(image_id)
    return int(get_xattr(path, 'hits', default=0))
