Function to count people in jail