Add sample code for reduce count