Thanks but I realize that I probably do not need the number of events if I can access the parent of an event in the eventRendered function but I could not get it to work.
What I want is to change the cell background when there is at least an event in it.
Something like
args.element.parentElement.classList.add('myspecialclass')
I also tried to the renderCell function by using
scheduleObj.getEvents.(args.date,args.date) but it always return 0