Pass replica count by ENV_VAR to fix durability

Default to 0