add count for array