At a book sale, novels sell for $6 each and nonfiction books sell for $10 each. If Mike purchased 10 books for a total cost of $88 at the book sale, how many novels did he purchase?