Base counting code for DNA