We look at the division of 154744 by 5 
The aim is to understand the frequency of 5 in 154744.

On to step 1:
5 goes into 1 0 times with a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Take the next digit (5) from the dividend and append it to 1, then repeat: 15 / 5

Advancing to step 2:
The number 5 fits into 15 3 times, leaving a remainder of 0.
The number 3 becomes the next digit in our result. 
Result so far: 3.0
Subtracting 15 from 15 leaves us with 0.
Append the next digit (4) from the dividend to 0 and continue with: 4 / 5

Advancing to step 3:
5 can be fit into 4 0 times, resulting in a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 30.0
Subtract 0 from 4 to get 4.
Fetch the next digit (7) from the dividend, attach it to 4 and continue: 47 / 5

Advancing to step 4:
5 goes into 47 9 times with a remainder of 2.
The number 9 becomes the next digit in our result. 
Result so far: 309.0
If we subtract 45 from 47, we get 2.
Bring next digit (4) of the dividend behind the 2 and repeat the process: 24 / 5

Let's proceed to step 5:
When dividing 24 by 5, we get 4 with a remainder of 4.
Record the quotient 4 as the next digit in the result. 
Result so far: 3094.0
Subtract 20 from 24 to get 4.
Fetch the next digit (4) from the dividend, attach it to 4 and continue: 44 / 5

Let's proceed to step 6:
When dividing 44 by 5, we get 8 with a remainder of 4.
The number 8 becomes the next digit in our result. 
Result so far: 30948.0
If we subtract 40 from 44, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 7:
The number 5 fits into 40 8 times, leaving a remainder of 0.
Put 8 as the next digit of the answer. 
Result so far: 30948.8
The remainder is 0 after subtracting 40 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 8:
5 can be fit into 0 0 times, resulting in a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 30948.8
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 9:
5 can be fit into 0 0 times, resulting in a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 30948.8
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

After the division, we end up with 30948.8 and a remainder of 0.0.