PYTHON: Mouse click-and-hold in loop

I am looking for the codes for the mouse click-and-hold counting in the loop.
I do not want the code when mouse is pressed and it wait for release.
hard find in the internet!
Also press on anything on the screen such NOT button etc…
I do not care if it is bad idea, I just need code. THANK YOU SO MUCH!!!

Here for example:

start loop here

If mouse_pressed == 1:
count = count +1
count = 0

if count > 10 and count < 20:
print(“Still holding…”)

if count > 100 and count < 110:
print(“Whoa, that’s enough!”)

if count > 200:
Print(“FINE!, I am quitting!”)
count = 0

back to loop.