use "  " in x instead of count("  ")