6.7 The denominator of the geometric progression is $\frac{1}{3}$, the fourth term of this progression is $\frac{1}{54}$, and the sum of all its terms is $\frac{121}{162}$. Find the number of terms in the progression.