from typing import List


def _hyperopt_filter_epochs_trade(epochs: List, trade_count: int):
    """
    Filter epochs with trade-counts > trades
    """
    return [
        x for x in epochs if x['results_metrics'].get('total_trades', 0) > trade_count
    ]