Write SQL query to solve given problem: How many black patients stopped their care plan in 2017?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT COUNT(DISTINCT T2.patient) FROM careplans AS T1 INNER JOIN patients AS T2 ON T1.PATIENT = T2.patient WHERE T2.race = 'black' AND strftime('%Y', T1.STOP) = '2017'