Convert tests using "| wc -l | grep ..." to use the count script.

llvm-svn: 41097
diff --git a/llvm/test/CodeGen/Generic/switch-crit-edge-constant.ll b/llvm/test/CodeGen/Generic/switch-crit-edge-constant.ll
index ef986e0..c9d027b 100644
--- a/llvm/test/CodeGen/Generic/switch-crit-edge-constant.ll
+++ b/llvm/test/CodeGen/Generic/switch-crit-edge-constant.ll
@@ -1,6 +1,6 @@
 ; PR925
 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | \
-; RUN:   grep mov.*str1 | wc -l | grep 1
+; RUN:   grep mov.*str1 | count 1
 
 target endian = little
 target pointersize = 32