The Reidemeister zeta function with applications to Nielsen theory and a connection with Reidemeister torsion