Simplify process counting.