jenkins quoting does not like array len sytnax, use find | wc -l

Change-Id: I541c7538422bc73ca3c41f34a00edd682adaf2f8
diff --git a/jjb/pipeline/voltha/voltha-2.12/bbsim-tests.groovy b/jjb/pipeline/voltha/voltha-2.12/bbsim-tests.groovy
index b114384..8a2332d 100644
--- a/jjb/pipeline/voltha/voltha-2.12/bbsim-tests.groovy
+++ b/jjb/pipeline/voltha/voltha-2.12/bbsim-tests.groovy
@@ -427,8 +427,10 @@
       /bin/ls -l "${logsDir}"
       echo
 
-      readarray -t logs < <(find . -name '*-combined.log' -print)
-      if [[ \${\#logs[@]} -gt 0 ]]; then
+      # readarray -t logs < <(find . -name '*-combined.log' -print)
+      declare -i count=0
+      count=$(find . -name '*-combined.log' -print | wc -l)
+      if [[ $count -gt 0 ]]; then
           echo '** Bundle combined log'
           gzip "${logs[@]}"
           rm -f "${logs[@]}"