@Jenny *****
there is no official limit. If they think you are abusing it they may deny entry, but you're going to be traveling around, spending time in Philippines and Vietnam. It's not going to look like you're trying to live in Thailand on a tourist visa, so it should be fine.