Upgrade subject to access all content

Let:

$$X=\{ 1,2,3,4,5,6\}$$

What is the smallest number $n$ such that if $n$ integers are chosen from $X$, then at least one pair of integers is guaranteed to have sum $7$.

$3$

$4$

$5$

$6$