I completely agree, get him to a Vet soon !

He no doubt is in discomfort, specially if the evacuations are small and frequent.
His attempt to relieve any pressure on his bladder.
If it were a full (copious) urination, that would be different.
This has to be an infection of sorts.

Poor guy...

Have a good Day !
S.W.