make count of total result work