Using the Chamber of Commerce as Alexandria
Your friend is correct, Chamber of Commerce and other cards like it only count resource cards, not your starting resources or resources produced from other sources such as Wonder benefits or Yellow cards.

On the Description of the Wonders page of the rules you'll see a clarification at the top


  Clarification: the resources produced by the boards are not considered
  to be cards.