firefox iframe length

firefox iframe length

I have multiple iframes on the page, when I issue alert( $('iframe').length ); it only gives a count of 2.  The correct number should be 5 in my case.  When I run the page with IE 8 it gives the correct count.  What am I doing wrong here?

Thanks