Adding references in Latex Link to heading

\begin{filecontents}{references.bib}
@ARTICLE{KG:2022,
  author        = {A1},
  title         = {FDA},
  booktitle     = {conf},
  year          = 2021
}
\end{filecontents}

Then add bib file

\bibliographystyle{ieeetr}
\bibliography{references}

\end{document}

Then, pdflatex needs to run 3 times to generates references.bib first

	pdflatex document.tex
	bibtex document.aux
	pdflatex document.tex
	pdflatex document.tex

Count number of words in latex document Link to heading

untex file.tex | wc -w