Added method to return current process count; cleaned up code and added comments.