--- from: http://rosettacode.org/wiki/Bioinformatics/base_count