Write SQL query to solve given problem: Among the restaurants on street number below 1000, how many of them are in Railroad St.?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT COUNT(city) FROM location WHERE street_name = 'railroad' AND street_num < 1000