select count(*) from ($sql_query) user_query