You are really not counting material value , you're counting material imbalance in reality (what do I have that he doesn't have?) .
With that being said, if I trade queens and later promote to a queen with that being the only queen on the board (all other material equal) , well, heck, I'm up a queen ... end of story.
Furthermore, this material imbalance is memory-less, i.e. it does not matter if your queens were pawns 2 moves ago ... you only need to observe the material imbalance for EACH position and use it to come up with an evaluation as well as determine how to play the next move.
I was wondering something recently about the value of the pieces, suppose I promote a pawn to a queen for instance, if I lose that queen is it worth the value of a queen in determining postional strength or a pwan because that is what it was.