Detecting supercounterfluidity by Ramsey spectroscopy