def __number_measurements(a, func_axis=None):
    """ Calculates the number of measurements of an array from the array and the function axis.
    """
    if func_axis == None:
        return a.size
    else:
        return a.size / a.shape[func_axis]