Control infusion rates based on the number of stroks