Write SQL query to solve given problem: What is the total number of senators New Jersey have?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT COUNT(type) FROM `historical-terms` WHERE state = 'NJ' AND type = 'rep'