refactor nucleotide-count assignment

Refactored to use functions and ES5 construct (`Object.create`) to expose only public interface to API consumer.