from typing import Iterable
from typing import Any


def count(iterable: Iterable[Any]) -> int:
    """
    Returns the number of items in the iterable by counting them.

    :param iterable:    The iterable.
    :return:            The number of items in the iterable.
    """
    return sum(1 for _ in iterable)