code: static int parametersCount(Query query) {
          if (query.names().isEmpty())
              return countQuestionMarkParameters(query.sql());
          else
              return query.names().size();
      }
docs: Count the number of JDBC parameters in a sql statement.
  
  @param query
  .sql()
  @return