fix count and loyout for search output