Write SQL query to solve given problem: How many cars worth greater than 40000 were from the USA?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT COUNT(*) FROM price AS T1 INNER JOIN production AS T2 ON T1.ID = T2.ID INNER JOIN country AS T3 ON T3.origin = T2.country WHERE T3.country = 'USA' AND T1.price > 40000