def counts_to_rate(signal, measurement_interval):
    """
    Transform signal from counts to count rate.

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

    Returns
    -------
    rate: array
       Count rate signal
    """
    rate = signal / measurement_interval
    return rate
