# Can I count the number of times each reference is cited?

I am writing a paper, and I would like to be able to find out automatically how many times each reference is cited. This could either be appended to the references in a printed version, or outputted as a separate file.

I've seen Check if an entry is cited multiple times, but it focusses on checking each reference at the point of citation, while I want to do an overall count.

The reasons are twofold. Firstly, to see if any references are being 'overcited'. Secondly, if space becomes an issue, to be able to see easily which references are only being cited once and could potentially be removed with minimum fuss.

-

If you're willing to switch to biblatex, you may use the citecounter feature that was added in v1.3.

\documentclass{article}

\usepackage[citecounter=true]{biblatex}

\renewcommand{\finentrypunct}{%
(Cited \arabic{citecounter}~time\ifnumequal{\value{citecounter}}{1}{}{s})%
}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@misc{B02,
author = {Buthor, B.},
year = {2002},
title = {Bravo},
}
@misc{C03,
author = {Cuthor, C.},
year = {2003},
title = {Charlie},
}
\end{filecontents}

\nocite{*}

\begin{document}

Some text \autocite{A01}.

Some text \autocite{B02}.

Some text \autocite{A01}.

\printbibliography

\end{document}


-

You can use the backref or pagebackref options to hyperref to get links to section or page numbers after each reference in the bibliography if you don't want to switch to biblatex.

-
IIRC, the backref option doesn't tell you if a reference was cited multiple times on the same page. –  lockstep Mar 24 '11 at 14:22
@lockstep: Yes, you're absolutely right. I should have pointed out that this just gives a rough indication of how often a reference is cited. (Also, I could have sworn I upvoted your answer...fixed.) –  TH. Mar 24 '11 at 14:25
@lockstep: with version 1.21 or later of backref there is the \backrefalt formatting hook that gives access to the number of duplicate citations. Since version 1.33 the \backrefentrycount wrapper makes this more easily accessible. –  Lev Bishop Mar 24 '11 at 15:19