There is no set number of times that a person should masturbate. Masturbation is a normal and healthy way for people to explore their own bodies and find out what feels good to them. It is important to remember that moderation is key, and that engaging in any activity to the point of obsession or compulsivity may be a sign of an underlying issue that should be addressed.
If masturbation is affecting your daily life or relationships, or if you feel like you are unable to control your behavior, it may be helpful to talk to a healthcare provider or a therapist. They can help you determine if there is an underlying issue that needs to be addressed and can provide you with the support and resources you need to manage your behavior.