def get_mode(counter):
    """
    Helper function to return the count of the most common
    element from an instance of Counter()
    :param counter: collections.Counter instance
    """
    mode = counter.most_common(1)
    if not mode:
        return 0
    return mode[0][1]
