select count(*) from ($sql_query)