from typing import Counter


def number_of_loops(sessList: list) -> int:
    """
    number_of_loops counts the number of loops in a list by naively looking at the most frequently repeating element

    :param sessList: list of URLs inside a given session.
    :return: number of Loops
    """
    c = Counter(sessList)
    return c.most_common(1)[0][1] - 1