The Collision event does not work in ECS

I have created a cube with a plane as shown in the picture.

I want to catch an event when the cube touches the plane.
I tried the code provided by Unity in the documentation of Unity Physics 1.0.14 but it didn’t work.

using System.Collections;
using System.Collections.Generic;
using Unity.Burst;
using Unity.Collections;
using Unity.Entities;
using Unity.Jobs;
using Unity.Physics;
using Unity.Physics.Systems;
using UnityEngine;

[UpdateInGroup(typeof(FixedStepSimulationSystemGroup))]
public partial class GetNumCollisionEventSystem : SystemBase
{
    protected override void OnUpdate()
    {
        Dependency = new CountNumCollisionEvents().Schedule(SystemAPI.GetSingleton<SimulationSingleton>(), Dependency);
    }
}

public partial struct CountNumCollisionEvents : ICollisionEventsJob
{
    public void Execute(CollisionEvent collisionEvent)
    {
        Debug.Log("Enter");
    }
}

As of Unity Physics 1.3, collision events will be raised from built-in colliders if their Collider.providesContacts flag is set.