Write SQL query to solve given problem: How many of the line items have been shipped by rail with a quantity less than 30?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT COUNT(l_linenumber) FROM lineitem WHERE l_quantity < 30 AND l_shipmode = 'RAIL'