Returns the number of records in the repository for the specified namespace.
Optional namespace to count records for. If null, counts the default namespace.