fork detector based on processes count