Added function for number of accounts