Write SQL query to solve given problem: How many word appeared 8 times? State the language id of the page.. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT COUNT(T2.wid), T1.lid FROM pages AS T1 INNER JOIN pages_words AS T2 ON T1.pid = T2.pid WHERE T2.occurrences = 8