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


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41097 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/ARM/str_post.ll b/test/CodeGen/ARM/str_post.ll
index a388f54..1dc4155 100644
--- a/test/CodeGen/ARM/str_post.ll
+++ b/test/CodeGen/ARM/str_post.ll
@@ -1,7 +1,7 @@
 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
-; RUN:   grep {strh .*\\\[.*\], #-4}  | wc -l | grep 1
+; RUN:   grep {strh .*\\\[.*\], #-4} | count 1
 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
-; RUN:   grep {str .*\\\[.*\],}  | wc -l | grep 1
+; RUN:   grep {str .*\\\[.*\],} | count 1
 
 short %test1(int *%X, short *%A) {
         %Y = load int* %X