#!/bin/bash

j=0

for i in `seq 10`

do

a=`expr $i % 2`

if [ $a -eq 0 ]; then

echo $i 

else

let j++

fi

done

echo $j