Implement a function count_alice_pairs that counts the number of ordered pairs of positive integers (a, b) such that the sum of these integers equals a given positive integer n. The function should follow the signature provided below:
python
def count_alice_pairs(n: int) -> int:
"""
Counts the number of ordered pairs of positive integers such that when Alice adds them,
she will get a result of `n`.
Parameters:
n (int): The number Alice shows Bob, which is the result of her addition.
Returns:
int: The number of ordered pairs of positive integers.
"""
Input Requirements:
The input parameter n must be a positive integer.
Output Requirements:
The function must return an integer representing the total number of ordered pairs of positive integers (a, b) such that a + b = n.
Notes:
The function should handle any valid positive integer input for n and return the correct count of ordered pairs.
The solution must be written in a file called /app/solution.py.