How many times did Moses disobey God?

In the Bible Moses who was called by God to lead the people, was a good man and he followed the word of God. But he did make a major mistake . And it was God told Moses to speak to the rock in the desert, as the people were crying out for water in the heat. But Moses stroked the rock and water gushed out. So as a punishment Moses was not allowed to put his foot in the promised land.