How i can make something like this: select count(*) from myTable
Check the GetScalar() method in the LLBLGen Pro reference manual. Use an AggregateFunction.CountRow for the aggregateToApply parameter.
Also please check the LLBLgen Pro manuals section "Using the generated code -> Field expressions and aggregates"