from typing import Iterable


def count_in_range(it: Iterable[int], min_value: int, max_value: int) -> int:
    """Count how many numbers in an iterable are between given values (inclusive)."""
    return sum(1 for _ in (n for n in it if min_value <= n <= max_value))