Tim's answer answers your question.
However, your attempt isn't that bad (from my point of view) as I use it rather frequently, when comparing number of rows in different tables (for example, during migration process where I have to check bunch of tables at once).
Here's how: add yet another column, which shows the source of COUNT function:
SQL> create or replace view v_count as
2 select 'EMP' source, count(*) cnt from emp
3 union all
4 select 'DEPT', count(*) from dept;
View created.
SQL> select * from v_count where source = 'EMP';
SOUR CNT
---- ----------
EMP 14
SQL> select * from v_count;
SOUR CNT
---- ----------
EMP 14
DEPT 4
SQL>