Added support to count running processes