An attempt is only counted when you appear for one of the paper in Prelims do not even appear for the second paper. Also, if you just apply and don't appear for the exam, it will not be counted as an attempt.