There is a rule that the topic sentence should not exceed three lines in the text. But despite this, the sentence can contain at least 30 words. The main thing is that it should indicate the main idea and purpose of the paragraph.