need to add counter to repeated types