use SAL_N_ELEMENTS

Change-Id: I533ce52828ae08a6ab111bcbeaaa6b44c62a6ab9