The easiest way to is to use the ID Column in SharePoint. It will autoincrement for every record.

However, If you prefer to control a number in Power Apps you can do it this way.
1 - Create a Number Column in SharePoint.

2 - In Power Apps Create a Collection (App -> OnStart). You may need to do this as you could hit Delegation warnings if you use the column in SP directly.

ClearCollect(colInvoiceNumber,'Demo List'.'Invoice Number')
3 - Get the last Invoice Number an add 1.

Sum(Max(colInvoiceNumber,'Invoice Number')+1)
---------------------------------------------------
Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful as can help others.
Subscribe: https://www.youtube.com/channel/UCFpvUlpx84FuIPOdInGKMTw
Twitter: https://twitter.com/assist_365
Regards
Darren Lutchner - 365 Assist