counting average parallel