I'm actually going to go ahead and copy and paste what I wrote to rajaman, because it is so relevant:
There is no one formula or method for masturbation, and no "bad" ways to touch yourself. Whatever feels best to you is what you should do!
If you see anything online, or elsewhere, stating that there are "right" or "wrong" ways to masturbate, that is untrue. In general, you can often often tell that something is not a credible source if it claims to that there are certain right and wrong ways to explore sex and sexuality. As long as what you are doing is safe and consensual, you can go ahead!
In terms of the number of times a day, there is no set number of times that is ok. As long as you are not experiencing pain than you are all set!