%@ page contentType="text/html;charset=Shift_JIS" %>
スクリプトレット内のカウントは<%= localcount %>です。
変数宣言で作成したカウントは<%= count %>です。