You can find the number of agents by going to the Browse Resources link on the header, then click on Servers, then use the drop down to select 'HQ Agent'. That should give you a listing of all the agents in your environment.
For an environment of your size, it would be helpful to have more RAM available in the system. Disk IO throughput is also an important factor.
For now, there are a couple of things we can try to get the database healthly again:
Shutdown the HQ server, then open a cmd window and changed into your server-2.7.3/bin directory. From there, run db-start.bat to start the database, then db-psql.bat to open up a connection to the database. From within psql, run 'VACUUM FULL ANALYZE VERBOSE;'. After it completes, run \q to exit the shell, then restart your HQ server.
-Ryan