The level of the attack enchantment is based on your characters Enchanting skill, the amount of charges available is based on the soul gem you use.
There should also be an option to adjust the level of the attack enchantment so you can get more uses out of the weapon between recharging it.