def count_cards(cards_ids):
    """
    Count amount of not None cards.

    :param cards_ids: cards to process
    """
    counter = 0
    for card_id in cards_ids:
        if card_id is not None:
            counter += 1
    return counter