page.assign display assigned value

I can assign the value with
  <%=link_to_function("alert", nil, :id => "alert") do |page|
    page.assign 'count', 1
    page.alert(count)
  end
%>

How can I use the value of count once I assign it some value?

Thanks.