add GetTotalBlocksEstimate() function, move magic number to constant