Show Health of Mobs

Im developing a datapack where players can go into a dungeon and fight "custom" mobs. I would like to add something thats showing the mobs health right now and how much it had overall. The representation could be like this : [13/20] or when full hp [20/20]. Can anyone maybe tell me if this is possible and what i need for this?
Continue to help post