How to do a counting of a timer configured in Mplab Harmony framework?
You are probably getting the memory address of the DRV_TMR0_CounterValueGet function rather than the return value because you didn't call the function. You must call the function with () i.e.

teste = DRV_TMR0_CounterValueGet();

(not teste = DRV_TMR0_CounterValueGet;)