Oracle count fix