add counts to each heading