I suppose you could use a generator. Initialize count like:
count = itertools.count()
then you can do the following as much as you like
Python 2.x:
Button(root, text = "example", command = self.example_action).grid(row = count.next())
Python 3.x:
Button(root, text = "example", command = self.example_action).grid(row = next(count))
But I probably wouldn't