ITS#9535 avoid non-portable wc format

Use awk to count lines instead
3 jobs for OPENLDAP_REL_ENG_2_5 in 110 minutes and 1 second (queued for 2 seconds)
Status Name Job ID Coverage
  Build
passed build-gnutls-mit-standalone-lloadd #6661

01:47:44

passed build-no-threads-no-slapd #6659

00:02:16

passed build-openssl-heimdal-lloadd #6660

00:48:59