Is there any possible to identify count of DOM element using & Node Onpageload?

Hi!
I am trying to get count and attributes of DOM element which has and OnPageload

can someone explain me the source?