Compare pulse count to value - Multiple Inputs

If you get an error message with some of your code, and you don't understand it, post the code and post the whole error message.

Do not attempt to paraphrase error messages.