How many terms are there in an \(A.P.\) whose first and fifth terms are \(-14\) and \(2\), respectively and the last term is \(62\)?