@Roma ********
I really do not know the magical number. What I read and hear is that with your history, you are living in Thailand.
I dont think yiu will get any visa in SE Asia Thai Consulates. Must try in your home country. And when you arrive to reenter Thailand ..its totally up to the Immigration Officer to admit you or not.
If you do get a Tourist Visa from your home country, I would suggest you not fly into Thailand. Carefully select a land border crossing to enter.