def calc_num_beats(peaks):
    """Calculate the number of beats in ECG recording

    Args:
        peaks (list[int]): list with indexes of peaks of QRS complexes

    Returns:
        int: the number of peaks
    """
    num_beats = len(peaks)
    return num_beats