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

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

  def nucleotide_counts(nucleotides) do
    List.foldl(nucleotides, @empty_nucleotide_table, fn(nucleotide, acc) ->
      HashDict.update(acc, nucleotide, 1, &1+1)
    end)
  end


end
defmodule DNA do
  @nucleotides [?A, ?C, ?G, ?T]

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