Add solution and testing to array_count.rb