The example shows an expression "{ count(.... ) }".
This should be fn:count with the prefix. It would be very odd to bind the default namespace to the XPath function namespace for these tiny expressions.
I can imagine someone doing that if they have a large expression, but in this example we should be more explicit.