When frustrated I think to hurt myself

I need some coping mechanisms if you have any suggestions like counting to 10. I haven’t hurt myself but I sure do think of it which isn’t healthy. Basically it’s the weather foiling my plans. Darn!!