In this rule

Historical Rules · 25 August 2017

Rule 508.3b

Official source text from the 25 August 2017 Rules release

Permalink

An ability that reads “Whenever [a player or planeswalker] is attacked, . . .” triggers if one or more creatures are declared as attackers attacking that player or planeswalker. It won’t trigger if a creature is put onto the battlefield attacking that player or planeswalker.

Find this number in the current Rules