added previous items count parameter
Merge pull request #1 from kktuax/BATCH-1613

added previous items count parameter