Returns occurences of nucleotides in a given strand.