Len minus _index.md (count of Section pages)

Hello! I have the code

{{ len (where .Site.Pages "Section" "=" "careers") }}

But this result includes the _index.md. It is wrong! How can I exclude the main file?

{{ len (where .Site.RegularPages “Section” “=” “careers”) }}

It is not correct. I have the same result

That correct {{ len (where .Site.RegularPages “Section” “==” “careers”) }}

What do you mean the “main file”?

{{ sub ( len (where .Site.Pages “Section” “=” “careers”) ) 1 }}

I mead _index.md files. In this code

{{ len (where .Site.RegularPages “Section” “==” “careers”) }}

this file exclude of the count.

I don’t understand your question. Maybe others will.