SELECT count(*)as `num` FROM `book` WHERE (`visible`=?) AND (wordCount between 500000%20and%201000000) AND (`categoryID`=?) LIMIT 1