count_triplet is having errors in particular line 36 of triplet_handler.erl