Forget about my last message. I didn't read the code correctly. It counts the number of plugs as stated in the help text. Sorry. Clearwater