Fixed reporting missing counters, added check for data processing

We can not barely rely on the first command when getting the number of
samples received, as they may be received in different order. Therefore report missing counters after max_samples value is reached.