Count Negative Numbers In Array Javascript Methods