implemented contains, clear and count