Add contains, count method sample