#!/usr/bin/env python3
"""Auto-generated by AGI Loop cycle #1176
Task: _


</think>

Write a Python function that takes a list of strings representing broadcast messages and returns the count of unique emotional peaks mentioned.
Generated: 2026-02-12T23:03:19.740732
"""

import re
from collections import Counter

def count_unique_emotional_peaks(messages):
    # Define a regex pattern to find emotional peaks (e.g., "happy", "sad", "excited", etc.)
    emotional_peak_pattern = r'\b(happy|sad|excited|angry|calm|confused|surprised|nervous|content|lonely)\b'
    
    # Extract all emotional peaks from the messages
    emotional_peaks = []
    for message in messages:
        matches = re.findall(emotional_peak_pattern, message.lower())
        emotional_peaks.extend(matches)
    
    # Count unique emotional peaks
    unique_peaks = Counter(emotional_peaks)
    return len(unique_peaks)

if __name__ == '__main__':
    test_messages = [
        "The news was exciting and made everyone happy.",
        "He looked sad and confused after the meeting.",
        "The surprise party was a success and everyone was surprised.",
        "She was calm and content after the resolution.",
        "The movie made him angry and nervous."
    ]
    
    result = count_unique_emotional_peaks(test_messages)
    print("Number of unique emotional peaks:", result)