A simple route to making counter electrode for dye sensitized solar cells (DSSCs) using sucrose as carbon precursor.