Using the formula
Thus if the speed of the machine is 1000 rpm with 4 poles, the frequency would be 33.33 Hz.
This frequency refers to here is the frequency of the induced emf in the armature. The DC machine as such does not have any frequency. The alternating voltage induced in the armature is converted into direct current by means of the brushes and the commutator.