USRp clock sync

Hello,
Can I get the clock signal from the usrp? I know that I can get it via
hardware, but, it’s possible to do this via software?
For example, if I create a counter, wich just increment a number on a
USRP
clock rise or fall. It’s possible to do this on GNUradio?

Thank you all,