How can I get strategy backtest statistics, like:
Num of buy/sell orders
I red that there are analyzers,
Is there a code sample for that?
Yes, using analyzers. See the documentation
There are multiple samples. For example
The sources, blog and documentation contain more.