Anbei eine Lösung, bei der (ab dem zweiten LaTeX-Lauf) die Zahl der Verzeichniseinträge nicht bloß am Schluss, sondern an jeder Stelle des Dokuments als \ref{bibentries} verfügbar ist. Teile des Codes basieren auf dem Paket lastpage.
Code:
\documentclass{article}
\usepackage[latin9]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage[style=authoryear-icomp]{biblatex}% lädt auch Paket etoolbox
\usepackage{csquotes}
\makeatletter
\newcounter{bibentries}
\newbool{firstbiblos}
\booltrue{firstbiblos}
\newcommand*{\subtractcitesiffirst}{%
\ifbool{firstbiblos}{%
\setcounter{bibentries}{-\theinstcount}%
\boolfalse{firstbiblos}%
}{%
}%
}
\pretocmd{\printbibliography}{\subtractcitesiffirst}{}{}
\pretocmd{\printshorthands}{\subtractcitesiffirst}{}{}
\AtEndDocument{%
\addtocounter{bibentries}{\theinstcount}%
\immediate\write\@auxout{%
\string\newlabel{bibentries}{{\thebibentries}{}}%
}%
}
\makeatother
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{Bli74,
hyphenation = {english},
author = {Blinder, Alan S.},
year = {1974},
title = {The economics of brushing teeth},
journaltitle = {Journal of Political Economy},
volume = {82},
number = {4},
pages = {887--891},
}
\end{filecontents}
\bibliography{\jobname}
\begin{document}
Zahl der Verzeichniseinträge in diesem Dokument: \ref{bibentries}
Ein bisschen Text \autocite{Bli74}.
\printbibliography
\end{document}
lockstep
Lesezeichen