[jQuery] [validate] How can i count validation errors and trigger alert on submit?

[jQuery] [validate] How can i count validation errors and trigger alert on submit?


Hello I'm new to jquery and im trying to use the " jQuery plugin:
Validation " but i want to use an alert with it and also count how
many error have occured and put that in the alert as well.
how do i achieve this
thanks