Barlines and the pickup
Barlines are the vertical lines that divide music into measures (bars). Each bar holds exactly the number of beats the time signature promises — no more, no less. Before you play a line, run your eye along it and find where beat 1 sits in every bar. That's your anchor for the whole thing.
Find beat 1 in each bar
When a tune doesn't start on beat 1
Some tunes open with a pickup — also called an anacrusis: one or more notes that come before the first full bar, leading into the first strong downbeat. The opening bar is deliberately short, and the missing beats are usually made up in the last bar, so the two add up to one complete measure.
A pickup changes how you count the phrase — not the pitches. You just have to notice the short first bar before you start, so you know where "beat 1" really lands.
Same tune, with and without a pickup
A real pickup: When the Saints
The tune opens "Oh, when the SAINTS…" — three quick pickup notes, and "saints" lands on the downbeat.
The usual mistake
Playing the pickup as if it were beat 1 — which shoves the whole phrase one beat out of place, and every barline after it feels wrong. Or not noticing the short first bar at all and losing the count immediately. Always check: does the first bar have a full set of beats? If not, it's a pickup.