refactor nucleotide-count assignment