In most counting scenarios in Excel, COUNTBLANK reliably counts blank cells, and COUNTA reliably counts populated cells.
Windows 11 has a built-in report that provides insight into your laptop's battery health (and whether a replacement is needed).