I would count it. If it happened early enough in the day I might try to still stay within my limit, but I have a range, not really a limit (I try to stay under 1900, but really look at it week by week). So, I'd count it, and suck it up, even if I did go over for the day.
And then I'd try to find out why I ate them, especially if I didn't really want to! or why I ate two. If I giving myself a treat, then that's answer enough, but if I did it because I was overwhelmed, or too hungry, then I want to know!
I'd also congratulate myself for STOPPING at 2!
This is a long journey, and you won't be perfect, by any means. Account for what you did and move on -- again, might want to think about why it happened...