One does not pay attention to doubts in the number of rak'ahs in a mustaḥabb prayer, i.e. one may suppose that either side is the case unless supposing the higher number invalidates the prayer, in which case they take the lower number.