Itertools Count Function Matlab Example Code