What constitutes number of words?

Hello,

If my chapters begin with Chapter One, Chapter Two, etc, does the chapter heading count as part of the word count? IOW, say I have this:

Chapter One

In the beginning, God created…

Does this count as 7 words or 5 words towards the 5,000 word count?

Thanks for the info.