Show configured software repositories for yum/dnf

Question:
How many software repositories are configured for yum/dnf in the server?

Answer:
Run:

sudo yum repolist
and count the number of repos