fix the semantic of unframed_sql_select_count