When using lm_robust, and texreg get only the number of observations:

Use the option "single.row = TRUE" in the texreg function.

Related articles:

Efficient Data Analysis with lm_robust and Texreg: Streamlining Your Output
Data analysis is a time-consuming task that involves various steps, from data cleaning to modeling and visualization. One of the most important steps in data analysis is modeling, which involves fitting a model to the data to estimate the relationship between the variables.

Maximizing Your Data Insights: Using lm_robust and Texreg to Get Only the Observations You Need
As the amount of data available to businesses and researchers continues to grow, finding meaningful insights from that data becomes increasingly challenging. Fortunately, there are several powerful tools available to help maximize the insights gleaned from data. Two such tools are lm_robust and Texreg.

Simplifying Your Regression Analysis: How to Use lm_robust and Texreg to Optimize Output
Regression analysis is a powerful statistical method for analyzing the relationship between a dependent variable and one or more independent variables. However, it can be a complex process, requiring careful selection of variables, assumptions about statistical distributions, and interpretation of results.