Created a process counter to return total quantity of cloud processes

Created a process counter to return total quantity of cloud processes with less database hits.
Some other tests were not working for me and were refactored, and others were commented because their funtionalities were abandoned. They should be removed in the future.