Do you want to count how many distinct tickets or how many records for each ticket?
For the first, consider a nested query like:
SELECT Count(*) AS CntTick FROM (SELECT DISTINCT IDTicket FROM tablename WHERE Status = 1) AS Q1;
For the latter, don't include ID. Post your actual SQL statement.