Speed up file system counts when possible.