How many tabs can i design for an upper menu on iphone?

I want to filter my table result with 4 different tabs at the top of the page. All I could find is apps that are using max 3 (kayak, safari) or min 2 obviously. Is this ok to design 4 for ios app? is there a rule limiting me to just 3? enter image description here

Thank you!