The New York City police commissioner , Raymond W. Kelly , gave the committee details on what he said were 18 attempts or successful plots by terrorists to attack New York since 1990 , which he said was why the city has about 1,000 officers assigned to a counterterrorism unit .