counting # of dict matches kinda works