Compare form query with getElementsByTagName results rather than count to accomodate injected form(s).