xbee and PWM input

I have a sonar sensor that has a PWM output. How do I connect this to an xbee? As far as I can tell, the xbee only has Digital and Analog pins.

1] Is PWM not possible with xbee?
2] If not, is there a way I can use the regular digital pins to simulate PWM?

Help!