Found this on autoparts.com. My friend who is an ase mazda tech said this is what I need for my speedo problem I am ordering it now and when I have it in an update will be forthcoming.
Delphi Rear Speed Sensor
Delphi Rear Speed Sensor Part Number: W0133-1855895Manufacturer Number: W0133-1855895 List Price: $27.95
Our Price: $21.95
You Save: $6.00 Quantity:
Fit Note: Located in Rear Differential
Location: Rear
Fits the following 1997 Mazda B2300 submodels: 1997:SE; 4 Cyl 2.3L;