Fix count calculation for certain cases of initiateTransfer()