bug fix: count should count features for protocols with features and subprotocols