If one need to COUNT the number of visible items in a filtered list, then use the SUBTOTAL function, which automatically ignores rows that are hidden by a filter.
The SUBTOTAL function can perform calculations like COUNT, SUM, MAX, MIN, AVERAGE, PRODUCT and many more (See the table below). It automatically ignores items that are not visible in a filtered list or table. This makes it ideal for showing how many items are visible in a list, the subtotal of visible rows, etc. It also provide control rows hided manually manually.
The solution to your question would be to count the number of non-blank rows visible in Column A and Column B when a filter is active, use:
AtmCurrentSum = Application.WorksheetFunction.Subtotal(109, Range("$X$3:$X$4533"))

Points to remember when you apply SUBTOTAL formula:
- When function_num (First argument) is between 1-11, SUBTOTAL includes values that are hidden manually but ignore hidden by filter.
- When function_num is between 101-111, SUBTOTAL excludes all kind of hidden values.
- In filtered lists, SUBTOTAL always ignores values in hidden rows, regardless of function_num.
- SUBTOTAL ignores other subtotals that exist in references are ignored to prevent
double-counting
- SUBTOTAL only work with vertical data values arranged vertically.
- In Horizontal Hidden Columns, values are always included and never ignored.