added function to find total number of proposals