Does pg_stat_activity give me the number of connections

I am using Pronetheus as data source for my postgres monitoring. I am trying to get the number of connections using the “pg_stat_activity” but I am unable to understand if it’s giving me the count.
What are the changes I need to make to visualize the number of connections on each of my postgres nodes