from typing import List
from typing import Optional


def calculate_increases(depths: List[int]) -> int:
    """Calculate the number of depth increases."""
    previous: Optional[int] = None
    depth_increase: int = 0

    for depth in depths:
        if previous is not None and depth > previous:
            depth_increase += 1
        previous = depth
    return depth_increase