I am newbie

I have three elements
<p>Content </p>
<p> paragraph</p>
<p>Content paragraph</p>

I would like to know how I can access the length of the second paragraph

document.getElementsByTagName("p")[1].length does not seem to work and I cannot find an answer in the book I am reading.

Any help is appreciated

Regards
Corne