I'd set up a counter and then only execute the code inside your method if the counter is <= 5. (Don't forget to increment the counter each time, as well.)
Create an integer instance variable in your controller to track the number of times it is called, increment in the action method and check the count as a guard clause?