Instead of reduce I would run a filter for the addon state and take the count from the final array length.