you can only use absolute number or pipeline variables in the count property. You need to do add a subtract step prior to the repeat step. This is a good example of where FLOW starts to fall down and personally I would implement this in java.
We have lots of online training course and a lot of them are free, have a look here