Calculate the respiratory rate of a patient easily and accurately