Counter within a non specified range using WHILE