Position sizing
Contracts = risk budget ÷ risk per contract, rounded down, where risk per contract is the stop in ticks × tick value plus slippage and costs.
Learn it properly in Position sizing.
See also: R (risk multiple), Tick value
Education only, not advice. Futures trading uses leverage, and losses can exceed the money in an account. Examples are hypothetical unless a source is given.