Add support for dynamic count of items in player inventory.
closes #75.