import logging


def check_vehicles(expected, value):
    """
    Check number of vehicles found in output file matches input specifications
    :param expected: number of cars as specified by input file
    :param value: number of cars found in output file
    :return: value == expected
    """
    logging.info("checking vehicles")
    if value != expected:
        logging.warning("found {} cars in output file, expected {}".format(value, expected))
    return value == expected