How can I add red dot to the notification bell after I add notification log?

This script create notification log but I need to see like a red dot to tell me that I got new notifications!