#! /usr/bin/env python
import rospy
from std_msgs.msg import Int32
rospy.init_node('pub_node')
pub = rospy.Publisher('counter',Int32)
rate = rospy.Rate(2)
count = Int32()
count.data = 0
while 	not rospy.is_shutdown():
	pub.publish(count)
	count.data +=1
	rate.sleep()

