Are you wanting to use the POT to change the COUNT period or the value the count var compares to?

Also, have you looked/thought about PULSIN ?