Count number of records that match criteria

Count number of records that match criteria

I have a form where employees put in tickets when they break their devices, what i'm trying to accomplish is to make a label that shows on the form the amount of times that particular employeeID has broken a device (by counting the amount of records that exist with that employeeID)


input.lbl_Broken_Count = Service_Ticket_Entry[Employee_ID == "input.Employee_ID"].count();

I read the count function and came up with the above code however when i try to save i'm given the below error:

Variable 'lbl_Broken_Count' is already defined of datatype 'STRING' but trying to update 'BIGINT' datatype

Thanks.