Here's why this is a compound sentence:
* Two independent clauses:
* "The sun was shining brightly" is a complete sentence (has a subject and verb).
* "The wind was cold" is also a complete sentence.
* A coordinating conjunction: The word "but" connects the two independent clauses. Other common coordinating conjunctions are: "and," "or," "nor," "for," "yet," "so."