Stars and bars can be used in counting problems other than kids and cookies. Here are a few examples: