@staticmethod
def _get_gallery_size(datavar):
    """Returns the total number of images in gallery"""
    for line in datavar:
        if 'images' in line:
            return len(line.split(',')) - 1
    return None
