add encounter/visit counts to patient view