from typing import Dict


def _count_boxes_kitti(
        kitti_file_path: str,
) -> Dict:
    """
    Counts the boxes in a KITTI annotation file and returns a dictionary mapping
    the labels to the corresponding count of bounding boxes with that label.

    :param kitti_file_path: path to a KITTI annotation file
    :return: dictionary with labels mapped to their bounding box counts
    """

    box_counts = {}
    with open(kitti_file_path) as kitti_file:
        for bbox_line in kitti_file:
            parts = bbox_line.split()
            kitti_label = parts[0]
            if kitti_label in box_counts:
                box_counts[kitti_label] = box_counts[kitti_label] + 1
            else:
                box_counts[kitti_label] = 1

    return box_counts