import math


def count_lattice_paths(n):
    """
    Counts the total number of possible routes in an `n`x`n` grid
    from the top left to the bottom right moving only down and right.
    """
    return int(math.factorial(2 * n) / math.factorial(n)**2)