I was playing with my little brother with numbers when some examples suggested that for any $a,b\in \Bbb{R}$ we have $$\operatorname{card}\bigl((a,b]\cap \Bbb{Z}\bigr)=\lfloor b\rfloor-\lfloor a\rfloor.$$
Unfortunately I don't see how can I prove that, when we count the left side we see that is always the right side but it's not a proof.
Hint: solve for $\,a=0\,$ to get the intutition. Then use that $\operatorname{card}\bigl((a,b]\cap \Bbb{Z}\bigr)=\operatorname{card}\bigl((\lfloor a \rfloor,b]\cap \Bbb{Z}\bigr)\,$, since the (possibly empty) interval $(\lfloor a \rfloor,a)$ never contains an integer.