added new method to wait until repo package count is available