Add waiting for samples count

Method 'wait_samples_count' was added, because in CRUD test for samples
sample sometimes is added to DB after checking for its adding.

Change-Id: I6d8e5caa1926c7df07aab6f661a9925294ea1b9a
Closes-bug: #1367319
Merge "Add waiting for samples count"