Hello. Are you sure this sentence is the one you want to use? "Inverse" means in reverse relation; for instance, you could say "The number of times I attend the theater is in inverse relation to the number of times I stay home."
For you example, it seems as though it would be more accurate to say "The number of comments people post on threads is in inverse relation to their disinterest."