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