Check out example codes for "google sheets how to count all non empty cells". It will help you in understanding the concepts better.

Code Example 1

# Basic syntax:
=COUNTA(range)

# Example usage:
=COUNTA(A1:B26)

Learn ReactJs, React Native from akashmittal.com