skip empty arrays and always store count as count