Questions

If our 5k words are part of a novel broken in chapters are the chapter headings counted in our word count. Should our 5k end at chapter or scene or is either ok?