The official UPSC CAPF notice does not state the number of attempts. Only the maximum age is set. It suggests that a candidate may show up as many times as necessary till the age of 25.