As I said before:
The encoder will give 45 pulses in 1 rev of the motor, at 400 rpm there will be 400 x 45 pulses in 1 minute.
So if you are measuring the frequency (counts per second), you will get 400 x 45 / 60 counts per second.
That is 300 counts per second.
So, each pulse per second is equal to 400/300 rpm 400/300 = 1.333 rpm.
If you want the angular speed, I assume in radians, and there are 2 x pi radians in a circle, the 1 pulse per second is equivalvent to 2 x 3.142 x 1.333 radians per minute.
(note error in my original post, I wrote radians per second, should be radians per minute. I will correct it).
JimB