oracle sql count partition by example