Yes, I see how that works.  In which case I remove my concern that count looked unused in the function.