Step 1 :Iterate through all natural numbers from 1 to 500 and check if they satisfy the given conditions.
Step 2 :Increment a counter if the conditions are satisfied.
Step 3 :\(\boxed{355}\)