Added get_row_count() function