Find Count Of Element In Array Javascript Function How To Use