Call a positive integer monotonous in base 8 if it is a one-digit number in base 8 or its base 8 digits when read from left to right form either a strictly increasing or a strictly decreasing sequence. For example, , , and are monotonous in base 8, but , , and are not. How many monotonous positive integers are there in base 8?
255
374
381
511
512