That is usually the main sign of a UTI - urinary tract infection or a blockage. And a vet visit is in order asap, as those get life threatening really quickly.