process count counts the number of given processes