function to return number of albums