If you don’t know music theory and the formula for telling the key signature of a song by the number of flats and sharps in it — here is a SNEAKY MUSICIAN’S TRICK (one in a long series — collect them all).
This works for MOST songs — there will always be exceptions. But I’d say at least 90% or 95% or maybe even 99% will follow this rule.