Text this: A criterion of collective behavior of bacteria