To get the result for the entire table you could use a query like this:
SELECT num, COUNT(*) cnt
FROM (
SELECT num1 AS num FROM tableName
UNION ALL
SELECT num2 AS num FROM tableName
UNION ALL
SELECT num3 AS num FROM tableName
UNION ALL
SELECT num4 AS num FROM tableName
) s
GROUP BY num
To get the results only for the first two rows, you could use LIMIT:
SELECT num, COUNT(*) cnt
FROM (
SELECT id, num1 AS num FROM tableName
UNION ALL
SELECT id, num2 AS num FROM tableName
UNION ALL
SELECT id, num3 AS num FROM tableName
UNION ALL
SELECT id, num4 AS num FROM tableName
ORDER BY id
LIMIT 8
) s
GROUP BY num
where 8 is 4 columns * the number of rows you want 2, but you need to use an ORDER BY clause. An example is here.