code: @Override
  	@GET
  	@Path("/attacks/count")
  	public int countAttacks(@QueryParam("earliest") String earliest) throws NotAuthorizedException {
  		accessControlUtils.checkAuthorization(Action.EXECUTE_REPORT, requestContext);
  		
  		SearchCriteria criteria = new SearchCriteria().setEarliest(earliest);
  		
  		return appSensorServer.getAttackStore().findAttacks(criteria).size();
  	}
docs: {@inheritDoc}