simple Python Solution
\n\nclass Solution:\n    def countTime(self, time: str) -> int:\n        count=0\n        for i in range(1440):\n            hh=i//60\n            mm=i%60\n    
```\n\n```class Solution:\n    def countTime(self, time: str) -> int:\n        count=0\n        for i in range(1440):\n            hh=i//60\n            mm=i%60\n            \n            s=f"{hh:02}:{mm:02}"\n                \n            good=True\n            for a,b in zip(time,s):\n                if a!=b and a!="?":\n                    good=False\n                    \n            if good:\n                count+=1\n                \n        return count
['Python', 'Python3']