Fix count lines
Description
- add missing
third_party
ignore to not count lines in submodules; (for safety reasons also ignore cmake build directories, not relevant for CI) - move count_lines and doxygen to tests stage to see the output in MRs (as artifacts)
- add check if first line of lines.dat is correct