XF 2.1 Need to assign rank insignia by "message count" rather than User Group

I have a need to assign rank insignia my message count (similar to the Title Ladder) rather than User Group. I have created the correct CSS code in extra.less, and this code works for the Administrator usergroup.

I need to allow different rank insignia for different message counts, as they increase. Can someone please point me in the right direction?