Classify the following random variables as discrete or continuous:
X: the number of automobile accidents per year in Virginia.
Y: the length of time to play 18 holes of golf.
M: the amount of milk produced yearly by a particular cow.
N: the number of eggs laid each month by a hen.
P: the number of building permits issued each month in a certain city.
Q: the weight of grain produced per acre.