move dl counting code to its own method
move count code to fcount