Provides API to perform Word count operation