The Galaxy 101 tutorial performs a manipulation that almost sounds like what you are trying to do.
If this is not what you are looking for, could you please rephrase your question to make it more clear? What are your starting data? And what do you wish to count up?
Thanks! Jen, Galaxy team