One simple example on how to count the number of elements within set (set is nested in a list) is:
input abc=[{\'TV\',\'wifi\'},{\'TV\',\'wifi\',\'heater\'}]