Network Cardinality Estimation Using Max Consensus