Blue Apron posts loss as customer count falls 24%