code: func (ssa *SQLStorageAuthority) countCertificatesByNameImpl(
  	db dbSelector,
  	domain string,
  	earliest,
  	latest time.Time,
  ) (int, error) {
  	return ssa.countCertificates(db, domain, earliest, latest, countCertificatesSelect)
  }
docs: // countCertificatesByNames returns, for a single domain, the count of
  // certificates issued in the given time range for that domain and its
  // subdomains.