Write SQL query to solve given problem: How many dishes do not have correct data for the year in which it appeared first?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT COUNT(*) FROM Dish WHERE first_appeared < 1851 OR first_appeared > 2012