Replace 'grep foo | count 0' with 'not grep foo'.

This avoids depending on pipefail not being used.