mempool: fix pages computation to determine number of objects