By doing this :
Keep a side count of the exact number of cards left, then divide your running count by that number.
what would it give you? would it give your true count? then you substract true count by 1 and multiply it by your unit bet? = money to bet
unit bet = 1/1000 of your total...