Exercism Elixir challenge: point_mutation with counting function improvement