Change the number of rows and see the color of the title change.
All this is done with standard dynamic actions (refresh, add class, remove class).
And a javascript condition that calculates the number of rows.
function test(p_id) {
var l_number_of_rows = 5, l_element, l_return;
/*Get all the rows*/
l_element = apex.jQuery('#' + p_id + ' .uReportStandard tbody tr');
/*Below the tresshold return true else false*/
if (l_element.length < l_number_of_rows) {
l_return = true;
} else {
l_return = false;
}
return l_return;
};