Macro Counting

Can anyone school me on how to do a diet counting macros?

Thanks!