covariance_matrix.c (get_n_rows): New function to compute the number