def rate_to_counts(signal, measurement_interval=1.5 * 10 ** -4):
    """
    Transform signal from count rate to counts.

    Parameters
    ----------
    signal: array
       The input signal array
    measurement_interval: float
       The total measurement interval in s

    Returns
    -------
    counts: array
       Counts signal
    """
    counts = signal * measurement_interval
    return counts
