There are transactions counters for each database in a cluster.
If you want to find out how many transactions has your system generated at the moment, you should connect to any database as a superuser (postgres) and select sum(xact_commit) from pg_stat_database;