loading working
count of objects, not optimized now