Added count and selector support to JSP tag