#!/usr/bin/env python3
# -*- coding: utf-8 -*-


def unique_words_count(arr):
    return len(set(arr))


if __name__ == "__main__":
    print (unique_words_count(["apple", "banana", "apple", "pie"]))
