This would work fine but if you wanted more control over the groupings, rather than "hard-code" the values into the =COUNTIFS() formula you could type in the groupings value and then reference those cells in your formula
A B C
1 Lower Upper
2 0.00...