added commands to count processes