return the number of processes