$\{k \in \mathbb Z / 8722 \quad | \quad k \cdot 6076 = 5292 \quad in \quad\mathbb Z /8722\}$
The expression is equivalent to:
$k \cdot 6076 \equiv_{8722}5292$
cancelling by $gcd(6076,5292,8722)=98$:
$k \cdot 62 \equiv_{89}54$
$62^{-1} \quad mod \quad 89 = 56 \quad mod \quad 89$
Now I have to get the possible Elements for $k$:
$87, 87 + 89 = 176, 87 + 89 \cdot 2 = 265, 87 + 89 \cdot 3 = 354, ....$
Question: How can I get the cardinality of all the possible numbers without counting them by hand? It would take too much time for $k \le 8722$.