function for geting sequence stats