Monitoring the number and size of pests based on modulated infrared beam sensing technology