An attempt is counted only when you appear for the prelims examination. For example, if you have filled the UPSC exam form and do not appear in the UPSC examination, your attempt will not be counted.