Itertools Count Function Matlab Example