could check for count <= 0 in the first test, since that costs the same as count == 0, but just a suggestion. lgtm