How to create a InventJournalCount by code AX 2012 R2

Hi guys,

anyone can tell me what is the best way to create a inventjournalCount, please.

I have seen that use InventJournalTableData and InventJournalTransData but also the classes AxInventJournalTable

AxInventJournalTrans.

Whats the best way?

Thanks