@staticmethod
def get_grid_size(param_grid):
    """
        Calculates the grid size (i.e. the number of possible combinations).
        :param param_grid: A dictionary of parameters and their lists of values
        :return: Integer size of the grid
        """
    result = 1
    for i in param_grid.values():
        result *= len(i)
    return result
