static function canonicalize($countexpr) { $x = new CountMatcher($countexpr); return $x->allowed ? $x->countexpr() : false; }