Let $p$ be a prime, then $\mathbb{F}_p$ is a finite field. $\mathbb{A}^2(\mathbb{F}_p)$ is an affine plane. Number of points in $\mathbb{A}^2(\mathbb{F}_p)$ is $p^2$.
I look at a line equation $ax+by=c$ and realise that number of distinct lines equals to number of triples $(a,b,c)$, where $\gcd(a,b,c)=1,\ a,b,c \in [0,p-1]$.
The question is: how to count the triples?
There are exactly $p$ lines that are parallel to the $y$-axis. Each of those is uniquely determined by the point of intersection with the $x$-axis.
All the other lines $y=mx+b$ are uniquley determined by their slope $m$ and intercept $b$. There are $p$ choices for both $m$ and $b$, so altogether we have $p^2$ lines that are not parallel to the $y$-axis.
Thus the answer is $p^2+p$.