'Determine the amount to recycle accordingly to user config
:param item: Item to determine the amount to recycle.
:return: The amount to recycle
:rtype: int'

def get_amount_to_recycle(self, item):

    amount_to_keep = self.get_amount_to_keep(item)
    return (0 if (amount_to_keep is None) else (item.count - amount_to_keep))
