in reply to How to make a Counter

You may want to check out BioPerl.