This grabs all the users who need to be billed, then sorts out the ones labeled 'pending deletion'. After that, we use the ceiling and divide functions to figure out how many 'billable buckets' there are. This gives you the count in multiples of 10, and you can tweak it as needed.
ceil(divide(length(Users[?!contains(status,
pending deletion
)]),
10
))