@Matrix2109 If you are using SharePoint online modern experience, you should consider using SharePoint Framework to develop a simple web part which will read list items using SharePoint REST APIs & show the count based on the different conditions.
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.