Find the total number of terms in a G.P., if its first term is 12, last term is 2916 and the common ratio is 3.