If the list contains exactly three elements to n, it will return a Boolean True. If not, it will return a Boolean false. The list also has to have a range of 16 and length of 16 characters. I have this part figured out, but I don't know how to count the number of times an integer appears in the list. I have this but it's not right at all, anything would help!
 def threeOfAKind(aList,n):

if 1<=len(aList)<=6 and set(aList)<=set(range(1,6)):

for i in range(1,6):

if n.count(aList)>=3:

return aList
This returns the error 'int" object has no attribute 'count".