It certainly does count.
There is absolutely no rule whatsoever saying that a loanee can't play against his parent club, in fact that would be against the FA's rules as it would count as interference in the selection at an another club if it were to appear in the contract.
There can however be a gentleman agreement based around the parent club preferring the loanee not to play against them which would be respected. If it wasn't respected the parent club would become displeased and possibly even recall the player soon after for another reason. Technically it would be down to Bobby, but Managers know which side their bread is buttered, he won't play.
This means that Barry is 100% available for selection but won't be selected, therefore it would count as one of his banned games if he were to be banned.