def blksLeftStakeWindow(height, netParams):
    """
    Return the number of blocks until the next stake difficulty change.

    Args:
        height (int): Block height to find remaining blocks from.
        netParams (module): The network parameters.

    Returns:
        int: The number of blocks left in the current window.
    """
    window = netParams.StakeDiffWindowSize
    # Add one to height, to account for the genesis block.
    return window - (height + 1) % window