<human>:  Python counting elements of a list within a list
<bot>: Here is some code to check if all lists in list `L` have three elements of integer 1

all(x.count(1) == 3 for x in L)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.