use lazy loading strategy will fix yout issue, the issue happen because global filter query is filter the items and the items have relations with it when use(include or join) but count not