Brandon has put you in the right track but it might be a good idea to reread the recon the Thai visa website to ensure you have a full understanding of
Regardless of all your details it is entirely up to the IO if you are granted entry and as things are being tightened up ( not changed) you may be better off getting a visa rather than relying on counting days