Cleaned up CSS parser code for counting siblings.