# `Rexsilient.CircuitBreaker.Strategy.Count`
[🔗](https://github.com/fabiobarkoski/rexsilient/blob/v1.0.0/lib/rexsilient/circuit_breaker/strategy/count.ex#L1)

Opens the breaker after a number of failures.

Failures are counted from the moment the breaker was last closed; successes
do not reset the count.

## Options

  * `:threshold` - the number of failures that opens the breaker. Required.

## Examples

    strategy Rexsilient.CircuitBreaker.Strategy.Count, threshold: 5

---

*Consult [api-reference.md](api-reference.md) for complete listing*
