Delirium — Kessig Dire Swine has trample as long as there are four or more card types among cards in your graveyard.
Because you consider only the characteristics of a double-faced card’s front face while it’s not on the battlefield, the types of its back face won’t be counted for delirium.
In some rare cases, you can have a token or a copy of a spell in your graveyard at the moment that an object’s delirium ability counts the card types among cards in your graveyard, before that token or copy ceases to exist. Because tokens and copies of spells are not cards, even if they are copies of cards, their types will never be counted.
The card types in Magic are artifact, creature, enchantment, instant, land, planeswalker, sorcery, and tribal (a card type that appears on some older cards). Supertypes (such as legendary and basic) and subtypes (such as Human and Equipment) are not counted.
The number of card types matters, not the number of cards. For example, Wicker Witch (an artifact creature) along with Catalog (an instant) and Chaplain’s Blessing (a sorcery) will enable delirium.
Trample matters only as combat damage is being assigned, before it’s dealt. If Kessig Dire Swine doesn’t have trample while assigning its combat damage, it won’t matter if a creature dying due to combat damage causes Kessig Dire Swine to gain trample.