Performing a WITH ROLLUP when grouping by multiple fields, MySQL returns a rollup row for each group, as well as the overall summary:
WITH ROLLUP
CREATE TAB
Try to use a subquery, e.g. -
SELECT * FROM ( SELECT name, number, COUNT(1) FROM test GROUP BY name, number WITH ROLLUP) t WHERE name IS NULL OR number IS NULL
You also may want to change NULL values with appropriate texts.