code: @Override
  	public int count() {
  		try (Stream<?> paramStream = stream) {
  			int count = paramStream.map(r -> {
  				Map<String, Object> m = toMap(r);
  				paramMap(m);
  				context().addBatch();
  				return condition.test(context(), m) ? executeBatch() : 0;
  			}).reduce(0, (joined, element) -> joined + element);
  			return count + (context().batchCount() != 0 ? executeBatch() : 0);
  		} finally {
  			stream = null;
  			condition = DEFAULT_BATCH_WHEN_CONDITION;
  			batchAction = DEFAULT_BATCH_ACTION;
  			errorAction = DEFAULT_ERROR_ACTION;
  		}
  	}
docs: {@inheritDoc}
  
  @see jp.co.future.uroborosql.fluent.SqlBatch#count()