Added funcitonality to count all media on the device