Question: How many times does Jafar use magic by striking his cobra staff on the ground?
Answer: 2
Details: First magic is lightning, Second is transforming into a giant snake.