To calculate the number of attempts, you must only count the number of times you have qualified for mains.