select tabtmp.rq, count(1)
from tablename e,
(select trunc(add_months((last_day(sysdate) + 1), -1)) + rownum - 1 rq
from dual
connect by rownum <=
trunc(last_day(sysdate)) -
trunc(add_months((last_day(sysdate) + 1), -1)) + 1) tabtmp
where tabtmp.rq = e.rq(+);