The repetitive byte counter
Jelly, 1 byte

’


Output is 0 for a match, non-zero for a non-match.

Try it online!

How it works

This makes advantage of the overly liberal output format. Repeating ’ M times simply decrements the input M times, so the result will be zero if and only if the input is LM, where L = 1.