Adding countActive method close #12