Given a coordinate plane (matrix), start at 0,0 and find the number of ways to reach n,n using only upward and rightward moves.
Implement count_paths(n), which accepts a non-negative integer n and returns an integer count. Movement is restricted to one unit upward or one unit rightward at each step.
The starting and ending coordinates are included in the grid, and when n = 0, the result is 1.
def count_paths(n):