Added density of a categorical #10949
Not sure if this is the correct approach to the problem 

closes #10949.

 Assuming it is I will go ahead and add some documentation for this enhancement. Let me know if you have any feedback.
