I think you could simplify this line by creating a hash with a default value of 0 (via `Hash.new(0)`).