[jQuery] number of elements with a specific CSS class

[jQuery] number of elements with a specific CSS class


Hello guys,
is there a way to know how many element have a specific CSS class?
I have a list and I need to know how many items it contains.
I guess it should be omething like: $('#slider .navigation li'). ...
Thanks