How many motors can I connect to Arduino board?

Hey guys my question is simple. I am building a 3D printer and I need 6 motors to control my design.

I am planning to use Arduino mega 2560, can someone tell me how many motors can I hook up to this board?

Thanks

I currently have 6 connected and it works quite well.

Ricardol:
I currently have 6 connected and it works quite well.

No, you have 6 stepper drivers connected - motors do not directly connect to an Arduino!

Rather than the number of stepper drivers that can be attached I suspect the limiting factor will be the ability of a 16MHz Arduino to produce enough accurately timed pulses per second to operate several motors.

...R

With a stackable I2C board like Adafruit's offering, you can have up to 64 stepper motors.