=COUNTA(A2:A8) counts the number of nonblank cells in the list above
Input the formula: =COUNTA(A2:A8). Press Enter to get the result.