Count the Palindromes
05AB1E, &nbsp;10&nbsp; 8 bytes

-2 bytes thanks to Emigna (use "bifurcation" instruction Â to replace duplicate and reverse DR &amp; increment the loop to avoid needing to close it.)

G¹N&gt;вÂQO


Try it online!

How?

G¹N&gt;вÂQO
G        - for N in range(1, input()+1):
 ¹       -   1st input
  N      -   N (the loop variable)
   &gt;     -   increment
    в    -   base conversion
     Â   -   push reverse
      Q  -   equal?
       O -   sum
         - print top of stack