devi usare il count

$sel_riaa="select count(id_com desc) from q_rich_comm order by id_com desc ";