Write SQL query to solve given problem: How many days did the sun rise before 5 AM?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT COUNT(DISTINCT `date`) AS days FROM weather WHERE sunrise < time('05:00:00')