from typing import Dict
from typing import Any


def _get_fp_len(fp_params: Dict[str, Any]) -> int:
    """
    Return the length of the fingerprint with the given parameters.

    Parameters
    ----------
    fp_params : Dict[str, Any]
        Parameters to get the fingerprint length from

    Returns
    -------
    int
        The fingerprint length belonging to the given fingerprint parameters
    """

    return fp_params['nBits'] if 'nBits' in fp_params else fp_params['fpSize'] if 'fpSize' in fp_params else 166