Speaking precisely, a mental illness is when there is some property A of the universe (or the Platonic realm of conceivable entities, or whatever) that in fact has value X, but that you (wrongly) think has some other value Y instead. There is a distinct mental illness for every possible pair of values of A and Y.