An optimal distributed trigger counting algorithm for large-scale networked systems. (July 2013)