3. The number of diagonals in a convex nonagon is $\qquad$.

将上面的文本翻译成英文，请保留源文本的换行和格式，直接输出翻译结果。 

Note: The blank space represented by $\qquad$ is kept as is in the translation.
3. 27. (Hint: Each vertex leads to $(9-3)=6$ diagonals, there are 9 vertices in total, and each diagonal passes through two vertices, so the total number of diagonals is $6 \times 9 \div 2=27$.)