pub fn attester_count(&self, epoch: Epoch) -> usize {
        self.attesters
            .read()
            .iter()
            .filter(|(_, map)| map.contains_key(&epoch))
            .count()
    }
/// Returns the total number of validators that should attest in the given epoch.
Returns the total number of validators that should attest in the given epoch.
Returns the total number of validators that should attest in the given epoch .
pub fn attester_count(&self, epoch: Epoch) -> usize {
        self.attesters
            .read()
            .iter()
            .filter(|(_, map)| map.contains_key(&epoch))
            .count()
    }
pub fn attester_count ( & self , epoch : Epoch ) -> usize { self . attesters . read ( ) . iter ( ) . filter ( | ( _ , map ) | map . contains_key ( & epoch ) ) . count ( ) }
Returns the total number of validators that should attest in the given epoch.
Returns the total number of validators that should attest in the given epoch .
&self
epoch
Epoch