Elvish Mariner's last ability cares about the number of cards you actually looked at. For example, if you were supposed to scry 3 but only had two cards in your library, X would be 2.

Artwork
Loading artwork…
Elvish Mariner
The Lord of the Rings: Tales of Middle-earth · #283 · EN
Nonfoil—Foil—
Card rules
Whenever this creature attacks, scry 1.
Whenever you scry, tap up to X target nonland permanents, where X is the number of cards looked at while scrying this way.
3/2
In the days of the Kings, most of the High Elves dwelt with Círdan or in the seaward lands of Lindon.
Rare · Illustrated by Axel Sauerwald
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Pioneer Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions