   1
   """
 
-  def count(dna, nucleotide) do
-    Enum.count dna,  &1 == nucleotide
+  def count(strand, nucleotide) do
+    Enum.count strand,  &1 == nucleotide
   end
 
 

defmodule DNA do

  @empty_nucleotide_table HashDict.new([{?A, 0}, {?C, 0}, {?G, 0}, {?T, 0}])

  @doc """
  Counts individual nucleotides in a DNA strand.

  HashDict.new [{?A, 4}, {?T, 1}, {?C, 0}, {?G, 0}]
  """

  def nucleotide_counts(strand) do
    HashDict.new @nucleotides, &({&1, count(strand, &1)})
  end
end
