     end
   end
 
-  defp update_tests_counter(tests_counter, %{tags: %{type: type}}) do
-    Map.update(tests_counter, type, 1, &(&1 + 1))
+  defp update_test_counter(test_counter, %{tags: %{type: type}}) do
+    Map.update(test_counter, type, 1, &(&1 + 1))
   end
 
   ## Printing

    IO.puts formatted
  end

  defp format_test_type_counts(%{tests_counter: tests_counter} = _config) do
    Enum.map tests_counter, fn {type, count} ->
      type_pluralized = pluralize(count, type, ExUnit.plural_rule(type |> to_string()))
      "#{count} #{type_pluralized}, "
    end

    else
      IO.write success(".", config)
    end
    {:ok, %{config | test_counter: update_test_counter(config.test_counter, test)}}
  end

  def handle_event({:test_finished, %ExUnit.Test{state: {:skip, _}} = test}, config) do
    if config.trace, do: IO.puts trace_test_skip(test)
    {:ok, %{config | test_counter: update_test_counter(config.test_counter, test),
                     skipped_counter: config.skipped_counter + 1}}
  end

