from typing import List
from typing import Tuple
from typing import Dict
from typing import Counter


def create_cardinality_dict_for_doc_sentences(
    list_of_tuples: List[Tuple[str]],
) -> Dict[Tuple[str], int]:
    """Creates a dictionary with the elements of the input list of tuples
    as keys and their cardinalities inside the list as values.

    Args:
        list_of_tuples (List[Tuple[str]]): A list of tuples (of strings)

    Returns:
        Dict[Tuple[str], int]: The cardinality dictionary of the elements of the list
    """
    return Counter(list_of_tuples)