Cast numTransactions to int to fix wrong comparisons that fail to identify pagination