You can choose any value for X as you cast Chamber Sentry. The value chosen for X doesn't directly affect the number of +1/+1 counters Chamber Sentry enters the battlefield with, but it does let you pay more mana and thus spend more colors of mana to cast it.