Tracking victory points in a deck

So I am making a module that has a deck of cards. Each card has a different victory point value associated with it.

I want to create a text label that lets me post the total amount (sum) of all the victory points of cards in a specific deck.

How would I do that?

Hint: perform counting of regular expression and either a combination of triggers to do the sum or, maybe, the new beanshell stuff will do it for you.

Is there a tutorial on perform counting of regular expression?

Looks like the best way to do this that I found was creating a Game Piece inventory Window and using a sum function within a certain zone on the board.