deadsea - 11:04 am on Jun 30, 2012 (gmt 0)
Urls are not evaluated completely independently. The first link you have to another site carries a lot more weight than the 1000th time you link to that same other site. Google became wise to sites that link out from too many pages to the same site.
In this case with two links from different pages, I'd expect them to both count. Maybe not quite the weight that only one link would have, but they should both count.