So in SQL I'd use some group by statements and toss in a derived column called "SalaryRange" with a CASE statement that sorted that all out. Then I'd take my count ...