Infant breathing rate counter based on variable resistor for pneumonia