Skip to navigation

Question:
How to cound elements inside a link tag with javascript?

Choose portability over efficiency.