init
solved using count method