Phoenix Counting Application - (FunctionClauseError) no function clause matching

I just had to add the following function to get it working, is there any better solution maybe?

def handle_info({:count, count}, socket) do
    {:noreply, assign(socket, val: count)}
  end