Given a positive integer n, return the number of the integers in the range [0, n] whose binary representations do not contain consecutive ones.