I need a wordpress loop that for every post checks a meta numeric variable previously assigned to each of the taxonomies of the post and returns the sum of these meta variables.
To do so, I think I need a dynamic variable name for the total. I mean something like:

How can I do that? Is it possible to generate a dynamic numeric variable via loop? and HOW can I refer to it in a general way, without adressing it with its name?
Thanks everyone! And sorry for possible English mistakes :P

EDIT: I just realized the code by Alex is not what I wanted. I need a variable which changes name at every post and which value is always = 0. Is there a solution?

I used your solution with a little change: while ( $the_query->have_posts() ) : $the_query->the_post(); $amount = get_post_meta($post->ID, 'the_meta_data_field', true); $total = $amount + $variablerelatedtotaxonomy; echo $total; endwhile; because I needed the total to be different for every post (every post counts just the taxonomy related variables of the post), but the principle works! thank you very much!
–
She HulkOct 4 '12 at 10:07

sorry, I made a mistake: I just realized the code is not what I wanted. I need a variable which changes name at every post and which value is always = 0, so this is not the right solution. I posted the answer by mistake checking it in a function with just one taxonomy-variable (it worked that way, with two variables obviously it doesn't work).
–
She HulkOct 4 '12 at 12:47

I found the solution to my problem: an array which increases its lenght at every cicle of the loop. I know it's simple but since I'm just a beginner it took me a while to think about it. I post the code here so maybe it can help someone (and if you find bugs or have improvements, please tell me)