added counts to persons and doc refs