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


def compute_frequency(
        token_lst: List[str], amount=50
) -> List[Tuple[str, int]]:  # noqa: E501
    """Compute word frequency from a list of tokens."""
    word_freq = Counter(token_lst)
    return word_freq.most_common(amount)