Batch all StatCounter stats into one datagram in flush().

Change-Id: I50a2cd24764e0a284c4a1138f8424ebf3990792e