You do len(list(channels)) unless you want to make a method to get a length.