There is no number that separates compulsive from non-compulsive. What makes something compulsive is why you do it.

If you masturbate because you feel like you HAVE to, because it gives you a drug-like rush that helps you escape from whatever it is that you don't want to feel or think about, if it something that you use to avoid having to be present in the real world, then yes, it's compulsive.

We are all in the gutter, but some of us are looking at the stars.
~ Oscar Wilde