Keeping it very simple, this report below should work once you have entered the correct subject and user ID.
Select Top 1000000 Count(htblticket.ticketid) As [# of tickets]
From htblticket
Inner Join htblnotes On htblticket.ticketid = htblnotes.ticketid
Where Cast(htblnotes.note As nvarchar(1000)) Like '%123%' And
htblticket.subject Like '%user locked out%'