from typing import List


def queue_job_count(queue, job_statuses: List[str]) -> int:
    """
    This function counts jobs that in the given state(s) for a given queue.
    """
    jobs = [
        job_id
        for job_id in queue.job_ids
        if queue.fetch_job(job_id).get_status(refresh=True) in job_statuses
    ]
    return len(jobs)