Oil content measurement